package com.xiaoxi.exam.book;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.WebDriverWait;

public class QuerySeatFinder {

  public static Map<String, String> querySeat(FirefoxDriver driver, String city,
      List<String> schools,
      List<String> dates) {
    try {
      WebDriverWait wait = new WebDriverWait(driver, 5);
      return BrowserUtil.selectSchool(driver, wait, city, dates, schools);
    } catch (Exception e) {
      return new HashMap<>();
    }
  }

}
